
DEFINE VARIABLE osType AS CHARACTER .

DEFINE STREAM hkxReport.

DEFINE VARIABLE OpenPassword AS CHARACTER.
DEFINE VARIABLE ProtectPassword AS CHARACTER.

DEFINE VARIABLE chExcelApplication AS COM-HANDLE.
DEFINE VARIABLE chExcelWorkbook AS COM-HANDLE.
DEFINE VARIABLE chExcelWorksheet AS COM-HANDLE.

OpenPassword = "huntkeybom".

ProtectPassword = ENCODE("huntkey").

IF OPSYS = "WIN32" THEN
    osType = "WIN32".
ELSE IF OPSYS = "UNIX" THEN
    osType = "UNIX".
ELSE
    osType = "UNDEFINED".
